package com.hkpw.system.domain.request;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

/**
 * @Auther: lenovo
 * @Date: 2022/12/9 16:49
 * @Description: HkAreaRequest
 * @Version 1.0.0
 */
@Data
public class HkBuildingRequest {
    /**
     * 园区编码
     */
    @NotEmpty(message = "园区编号不能为空")
    private String dormCode;

    /**
     * 园区名称
     */
    @NotEmpty(message = "园区名称不能为空")
    private String dormName;

    @Range(min = 1, max = 50, message = "楼层数必须在1-50之间")
    private Integer floor;

    @Range(min = 1, max = 200, message = "每层房间总数在1-200之间")
    private Integer dormNum;

    @Range(min = 1, max = 16, message = "房间可入住最大人数必须在1-16之间")
    private Integer maxIn;
}
